/*
 * $Id: Rsc.java,v 1.2 2001/09/23 12:25:49 jppietsch Exp $
 * Copyright (C) 2001 Jan-Peter Pietsch
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package de.jppietsch.error;


import de.jppietsch.util.RscBundle;


/**
 * Ressources for localized messages.
 *
 * @author Jan-Peter Pietsch
 * @version $Revision: 1.2 $
 */
public final class Rsc extends RscBundle {

    // constants

    /**
     * Resource key for the message "index out of bounds".
     * The message has the two arguments "name of the index" and "actual value
     * of the index".
     */
    public static final String INDEX_OUT_OF_BOUNDS_MSG = "indexOutOfBoundsMsg";

    // overwritten methods

    /**
     * All resources are created inside this method.
     * It's called only once by the base class.
     *
     * @return Array of key value pairs.
     * @see RscBundle#getContents()
     */
    protected Object[][] contents() {
        return new Object[][]{
                {INDEX_OUT_OF_BOUNDS_MSG, "Index {0}=={1} out of bounds!"}
        };
    }

}